package com.shunbo.convenient.service.impl;

import com.github.pagehelper.Page;
import com.shunbo.convenient.dao.ProductOrderMapper;
import com.shunbo.convenient.service.ProductOrderService;
import com.shunbo.convenient.vo.ProductOrder;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author weizhuang
 */

@Service
@Transactional
public class ProductOrderServiceImpl implements ProductOrderService {

    @Resource
    private ProductOrderMapper productOrderMapper;

    @Override
    public Integer save(ProductOrder obj) {
        return productOrderMapper.save(obj);
    }

    @Override
    public Integer update(ProductOrder obj) {
        return productOrderMapper.update(obj);
    }

    @Override
    public Integer delete(String obj) {
        return productOrderMapper.delete(obj);
    }

    @Override
    public ProductOrder findById(String obj) {
        return productOrderMapper.findById(obj);
    }

    @Override
    public List<ProductOrder> findAll(ProductOrder obj) {
        return productOrderMapper.findAll(obj);
    }

    @Override
    public Integer delByIds(List<String> ids) {
        return productOrderMapper.delByIds(ids);
    }
}
